from core.decorators.open_api import open_api
from views.Employee.model import Employee


class EmployeeService:

    @open_api(name="register.user")
    def register_user(self, email_str, code, password):
        return Employee.register_employee(code,email_str , password)

    @open_api(name="login.user")
    def login_user(self, password, email_str=None,phone=None):
        return Employee.login_employee(password,email_str=None,phone=None)

